{% extends "base.html" %}
{% load nav_extras %}
{% block header%}
<script type="text/javascript">
    //var myCalendar;
    function doOnLoad() {
        //myCalendar = new dhtmlXCalendarObject([ "dt1", "dt2" ]);
        //myCalendar.loadUserLanguage('cn');
    }
</script>
{% endblock%}
{% block content %}
    <h2>待审批</h2>
<div class="pageContent">
      <table class="dhtmlxGrid" gridHeight="auto" name="grid2" imgpath="/static/js/codebase/imgs/" width="98%" lightnavigation="true">
    <tr>
            <td type="ro">报表标题</td>
            <td type="ro">报表关键字</td>
            <td type="ro">报表创建人</td>
            <td type="ro">报表类型</td>
            <td type="ro">开始时间</td>
            <td type="ro">结束时间</td>
            <td type="ro">操作</td>
          </tr>
          {%for unapprove in list.object_list%}
          <tr>
          <td>{{unapprove.schedule_title}}</td>
            <td>{{unapprove.schedule_keyword}}</td>
            <td>{{unapprove.schedule_created_by_info}}</td>
            <td>{{unapprove.schedule_type_name}}</td>
            <td>{{unapprove.schedule_start_date|date:"Y-m-d"}}</td>
            <td>{{unapprove.schedule_end_date|date:"Y-m-d"}}</td>
            <td><a href="/schedule/view/{{unapprove.schedule_id}}" title="查看计划">查看计划</a>{% if not unapprove.status%}&nbsp;&nbsp;<a href="/approved/do/{{unapprove.schedule_id}}{% if unapprove.approve_id%}/{{unapprove.approve_id}}{%endif%}" >填写批复</a>&nbsp;&nbsp;<a href="/approved/commit/{{unapprove.schedule_id}}{% if unapprove.approve_id%}/{{unapprove.approve_id}}{%endif%}" >提交批复</a>{%endif%}</td>
          </tr>
          {%endfor%}
      </table>
    </div>
    <div class="pagination">
  {% paging_nav nav_url pn pc %} 
  </div>
{% endblock %}